<?
// *************************************
// * messages.php allows the admin to
// * Update the home page message
// * 
// *************************************
$toolbox  = 1;
$sajax    = 1;
$richtext = 1;
define('SITE_AREA', 'messages');

$jsFile = "jsMessages.js";
include("includes/functions.php");
include($pre."includes/sajax/sajaxMessages.php");

sajax_init();
$sajax_request_type = "POST"; 
sajax_export("getEU");
sajax_export("saveEU");
sajax_handle_client_request();

$eCategories = getCategories('select','C'); 

include("includes/header.php"); ?>
	<script language="javascript" type="text/javascript" src="<?=$pre; ?>js/tinyeditor/config/mceConfig.js"></script>
	<div id="addEditFormDiv" style="display: none;"></div>	
	<input type="hidden" id="itemID" />
			
	<div id="content0">
		<div id="formEU" class="blueBox">
			<h1>Update Home Page Message</h1>
			<p><label class="vertLabel">Title</label>
			<input type="text" style="width: 600px;" id="euTitle" />
			</p>
			
			<p><label class="vertLabel">Message Content</label>
			<textarea name="euContent" id="euContent" class="editorAlmostSimple" style="width: 600px; height: 200px;"></textarea>
			</p>
			
			<p><label class="vertLabel">Display Until</label>
			<div><input type="text" style="width: 100px;" id="euDisplayUntil" /></div>
			</p>
			
			<div style="float: left; margin-top: 15px; margin-left: 6px;">
				<input type="button" class="buttonBig buttonSaveBig" onClick="eventUpdatesObj.saveEU();" value="Update" title="Update" />
			</div>
			<div style="margin-top: 20px; margin-left: 10px; float: left;" id="formStatus"></div>
			<div style="clear: left;"></div>
		</div>				
	</div>
	
	
	<div id="south" class="x-layout-inactive-content">
	south - generally for informational stuff, also could be for status bar
	</div>
<? include("includes/footer.php"); ?>